// 类与接口

// 类与类之间的共同特征
// 座机可以打电话，手机也可以打电话，打电话就是共同点

export {}

interface Eat {
  eat (food:string): void
}
interface Run {
  run (distance: number): void
}
// 实现 Eat，Run
class Person implements Eat, Run {
  eat(food: string): void {
    console.log(`优雅的进餐：${food}`)
  }

  run(distance: number) {
    console.log(`直立行走：${distance}`)
  }
}
// 实现 Eat，Run
class Animal implements Eat, Run {
  eat(food: string): void {
    console.log(`咕噜咕噜的吃：${food}`)
  }

  run(distance: number) {
    console.log(`爬行：${distance}`)
  }
}